var facker=require('faker');
var Mock=require('mockjs');
var _=require('lodash');

module.exports=function(){
    return {
        people:_.times(100,function(n){
            return {
                id  : n,
                name: Mock.Random.cname(),
                img : Mock.Random.image('200x100', Mock.Random.color()),
                text: Mock.Random.cparagraph(),
                time: Mock.Random.date('yyyy-MM-dd'),
                star: Mock.mock({
                    'number|1-100': 100
                })
            }
        }),
        carousel:_.times(5,function(n){
            return {
                id  : n,
                title: Mock.Random.title( 3, 5 ),
                img : Mock.Random.image('200x100', Mock.Random.color()),
                text: Mock.Random.cparagraph(),
                url:Mock.Random.url()
            }
        }),
        product:_.times(100,function(n){
            return {
                id  : n,
                title:Mock.Random.title( 3, 5 ),
                img : Mock.Random.image('200x100', Mock.Random.color()),
                text: Mock.Random.cparagraph(),
                time:Mock.Random.date('yyyy-MM-dd'),
                price:Mock.mock({
                    'number|1-100':100
                })
            }
        }),
        news:_.times(100,function(n){
            return {
                id  : n,
                title:Mock.Random.title( 3, 5 ),
                text: Mock.Random.cparagraph(),
                time:Mock.Random.date('yyyy-MM-dd'),
            }
        }),
    }
}